/**
 * 
 */
package ai.ann;


/** 
 * @author Object
 * @proyect MyFirstNeuronalNetwork
 * @package neuronalNetwork
 */
public class LinearLayerDirect extends LayerDirect {

	private double beta = 1;

	/**
	 * 
	 */
	public LinearLayerDirect() {
	}

	/**
	 * @param rows
	 */
	public LinearLayerDirect(int rows) {
		super(rows);
	}

	public double[] stimulation(double[] patterns) {
		int x;
        int n = getRows();
        for (x = 0; x < n; x++){
            outMatrixs[x] = beta  * patterns[x];
        }
        if(output ==  null){
        	return outMatrixs;
        } else {
        	return getOutput().stimulation(getOutMatrix());
		}
	}

}
